import request from "@/utils/request";
export const rechargeAPI = data => {
    return request({
        url: 'user/recharge',
        method: 'post',
        data
    })
}

export const getUserDataAPI = username => {
    return request({
        url: 'user/queryOne',
        method: 'get',
        data: {
            username
        }
    })
}

export const updateUserDataAPI = data => {
    return request({
        url: 'user/update',
        method: 'post',
        data
    })
}
